#ifndef __DXIMAGE_H__
#define __DXIMAGE_H__

#include <string>
#include "Primitive.h"
#include "Atoms.h"
#include "LoadManager.h"

struct IDirect3DTexture9;
class DX;

class DXImage
{
public:
							DXImage( std::wstring fileURL, bool preload = false );
							~DXImage();
	
	void					unload( );

	IDirect3DTexture9*		texture();

private:
	std::wstring			_fileURL;
	IDirect3DTexture9*		_texture;
private:
	void					load( );
};

#endif